<!DOCTYPE html>
<html lang="zxx" xmlns:th="http://www.thymeleaf.org">
<head th:replace="admin/common/head(${webInfo})"></head>

<body class="fixed-left">
<!-- Begin page -->
<div id="wrapper">
    <div th:replace="admin/common/top_bar(null)"></div>
    <div th:replace="admin/common/side_menu(null)"></div>
    <div class="content-page">
        <div class="content">
            <div class="container">
                <div class="row">
                    <div class="col-sm-12">
                        <h4 class="pull-left page-title">资源管理</h4>
                        <ol class="breadcrumb pull-right">
                            <li><a href="#">文章管理</a></li>
                            <li class="active">资源管理</li>
                        </ol>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title">文章列表</h3>
                            </div>
                            <div class="panel-body">
                                <div class="row">
                                    <div class="col-md-12 col-sm-12 col-xs-12">
                                        <table class="table table-bordered">
                                            <thead>
                                            <tr>
                                                <th># id</th>
                                                <th>标题</th>
                                                <th>收费?</th>
                                                <th>含有资源?</th>
                                                <th>有限制?</th>
                                                <th>浏览量</th>
                                                <th>点赞</th>
                                                <th>点踩</th>
                                                <th>评论数</th>
                                                <th>状态</th>
                                                <th>可评论?</th>
                                                <th>分类</th>
                                                <th>保存类型</th>
                                                <th>创建时间</th>
                                                <th>创建人</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>
                                            <tbody id="roleList">
                                            <tr th:each="article:${articlePageInfo.list}">
                                                <td>[[${article.id}]]</td>
                                                <td>[[${article.title}]]</td>
                                                <td>[[${article.hasPayment}]]</td>
                                                <td>[[${article.hasResource}]]</td>
                                                <td>[[${article.hasLimit}]]</td>
                                                <td>[[${article.views}]]</td>
                                                <td>[[${article.likes}]]</td>
                                                <td>[[${article.dislikes}]]</td>
                                                <td>[[${article.commentCount}]]</td>
                                                <td>[[${article.status}]]</td>
                                                <td>[[${article.allowComment}]]</td>
                                                <td>[[${article.category.name}]]</td>
                                                <td>[[${article.documentType}]]</td>
                                                <td>[[${pageService.fmtDate(article.createAt)}]]</td>
                                                <td>[[${article.user.userName}]]</td>
                                                <td>
                                                    <button onclick="modifyArticle(1,this)"
                                                            class="btn btn-icon btn-xs btn-warning">
                                                        <i class="ion-edit"></i>
                                                        修改
                                                    </button>
                                                    <button onclick="articleComment(1,this)"
                                                            class="btn btn-icon btn-xs btn-normal">
                                                        <i class="ion-close-circled"></i>
                                                        评论
                                                    </button>
                                                    <button onclick="deleteArticle(1,this)"
                                                            class="btn btn-icon btn-xs btn-danger">
                                                        <i class="ion-close-circled"></i>
                                                        删除
                                                    </button>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <footer class="footer text-right">
            2022 © FileShare.
        </footer>

    </div>
</div>
<script th:replace="admin/common/base_script"></script>
<script th:src="@{/plugins/request/axios.min.js}"></script>
<script th:src="@{/plugins/request/request.js}"></script>
<script th:src="@{/plugins/alert/nz-alert/NZ-MsgBox.min.js}"></script>
<script th:src="@{/plugins/alert/nz-alert/NZ-Drag.min.js}"></script>
<script th:src="@{/admin/js/auth.js}"></script>
<script type="text/javascript">
    let resizeFunc = [];
</script>
</body>
</html>